package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Teacher;
import com.qdu.mapper.TeacherMapper;
import com.qdu.service.TeacherService;
@Service
public class TeacherServiceImpl implements TeacherService{

	@Autowired
	TeacherMapper teacherMapper;
	
	@Override
	public Teacher selectTeacherById(String id) {
		return teacherMapper.selectTeacherById(id);
	}

	@Override
	public boolean addTeacher(Teacher teacher, int acdmid) {
		return teacherMapper.addTeacher(teacher, acdmid);
	}

	@Override
	public boolean modifyTeacher(Teacher teacher, int acdmid) {
		return teacherMapper.modifyTeacher(teacher, acdmid);
	}

	@Override
	public boolean deleteTeacherById(String id) {
		return teacherMapper.deleteTeacherById(id);
	}

	@Override
	public List<Teacher> selectAllTeacher() {
		return teacherMapper.selectAllTeacher();
	}

	@Override
	public List<Teacher> selectTeacherByAcdmid(int acdmid) {
		return teacherMapper.selectTeacherByAcdmid(acdmid);
	}
	
}
